<template>
  <div id="app" v-cloak>
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
  mounted(){
    var url = window.location.href;
    var str = url.split('?nick_name')[1]

    if(str&&str.includes('#/')){
        str = str.slice(0, -2);
         this.$store.commit('setName',str)
    }else{
      window.location.href = 'https://project.hangzhou.com.cn/xldl/index'
    }
  },
  created(){
    
  }
}
</script>

<style>
#app,html,body{
  width: 100%;
  height: 100%;
  max-width: 450px;
  margin: 0 auto;
}
[v-cloak] {diaplay : none;}
</style>
